/**
 * 专业管理
 */
 import request from "@/utils/request.js"

//查询学生列表
export function studentApi(data) {
    return request({
        url: '/edu/student/list',
        method: 'POST',
        params:data
      })
  }
  //导出学生列表、
  export function exportApi() {
    return request({
      url: "/edu/student/export",
      responseType: 'blob',
      method: 'POST',
    })
  }
  // 导入
export function ImportStudentApi(data) {
  return request({ 
    ContentType: 'multipart/form-data',
    url: "/edu/student/importData",
    method: 'POST', 
    params:data
  })
}
//修改学生
  export function studentEditApi(data) {
    return request({
        url: '/edu/student/update',
        method: 'POST',
        params:data
      })
  }
//修改状态
export function studentEditstatusApi(data) {
  return request({
      url: '/edu/student/updateStatus',
      method: 'POST',
      params:data
    })
}
//添加学生
export function studentAddApi(data) {
  return request({
      url: '/edu/student/add',
      method: 'POST',
      params:data
    })
}
//删除学生
export function studentDelApi(data) {
  return request({
      url: '/edu/student/remove',
      method: 'POST',
      params:data
    })
}
//上传照片
export function Exupdate(data) {
  return request({
      url: '/file/upload',
      method: 'POST',
      params:data
    })
}

export function studentinfo(data) {
  return request({
      url: '/edu/student/info',
      method: 'POST',
      params:data
    })
}
